### Using the <Subscribe> Tag

Following is the syntax for the Subscribe XML file:

    <?xml version="1.0"?>

    <Response>

    	  <Subscribe type=”all|me”>

    	   <Url href= ”Subscription_Server_Url” />

    	</Subscribe>

    </Response >

Each < Response> can contain only one <Subscribe> tag with the following attributes:

Attribute | Value | Description
type | “all” | Instructs the endpoint to re-subscribe to all servers in the SUBSCRIBELIST.
| “me” | Instructs the endpoint to re-subscribe to the server in the href attribute of the <Url> tag. This url string must exactly match one of the subscription server list servers in the SUBSCRIBELIST variable for this type of subscription to proceed. If the matching fails the subscription request is aborted.

The <Url> tag has the following attributes:

Attribute | Value | Description
href | string | Contains the URL of the subscription server for which the endpoint must subscribe. Maximum length cannot exceed 1024 characters.

An exact string-based comparison matches the subscription URIs against the SUBSCRIBELIST values. If the subscription server URI does not exactly match the values in the SUBSCRIBELIST, the subscription request is aborted.

NOTE: See Subscription Service in Chapter 4: Push Administration for more information.